/**
 * layui 模板
 * */
layui.define(['laytpl'], (exports) => {
	let laytpl = layui.laytpl;
	let sdTpl = {
		render(param) {
			let getTpl = param.tpl.innerHTML,
				view = document.getElementById(param.id);
			laytpl(getTpl).render(param.data, (html) => {
				view.innerHTML = html;
				param.fn ? param.fn() : '';
			})
		}
	}
	exports('sdTpl', sdTpl);
})
